class Solution(object):
    def interpret(self, command):
        n = len(command)
        index = 0
        t = ''
        while index < n:
            if command[index] == 'G':
                t += 'G'
                index += 1
            else:
                if command[index] == '(':
                    if command[index + 1] == ')':
                        t += 'o'
                        index += 2
                    else:
                        t += 'al'
                        index += 4
        return t
